
package com.gitee.jmash.oidc.oauth2.models;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.ws.rs.QueryParam;

/**
 * /oauth/authorize Model.
 *
 * @author CGD
 *
 */
public class AuthzModel {

  @QueryParam("response_type")
  @NotNull
  private String responseType;
  /** 客户端标识符 . */
  @QueryParam("client_id")
  @NotBlank
  private String clientId;
  /** 重定向 URI . */
  @QueryParam("redirect_uri")
  private String redirectUri;
  /** 授权范围. */
  @QueryParam("scope")
  private String scope;
  /** 本地状态. */
  @QueryParam("state")
  private String state;
  /** 默认空(内部使用). */
  @QueryParam("key")
  private String key;
  /** OIDC 一次性. */
  @QueryParam("nonce")
  private String nonce;

  public String getResponseType() {
    return responseType;
  }

  public void setResponseType(String responseType) {
    this.responseType = responseType;
  }

  public String getClientId() {
    return clientId;
  }

  public void setClientId(String clientId) {
    this.clientId = clientId;
  }

  public String getRedirectUri() {
    return redirectUri;
  }

  public void setRedirectUri(String redirectUri) {
    this.redirectUri = redirectUri;
  }

  public String getScope() {
    return scope;
  }

  public void setScope(String scope) {
    this.scope = scope;
  }

  public String getState() {
    return state;
  }

  public void setState(String state) {
    this.state = state;
  }

  public String getKey() {
    return key;
  }

  public void setKey(String key) {
    this.key = key;
  }

  public String getNonce() {
    return nonce;
  }

  public void setNonce(String nonce) {
    this.nonce = nonce;
  }

}
